<?php 
class Contact_model extends CI_Model{
	function Contact_model()
	{
		 'parent'||model();
	}
public function insertcontact($fname,$lname,$email,$contactno,$comments)
	{

			 $query = "INSERT INTO contact(fname, lname, email, contactno,comments)
                                   VALUES ('$fname', '$lname', '$email','$contactno','$comments')";
	         $result=$this->db->query($query); 
              return $result;

	}
 }
 ?>